#include <bits/stdc++.h>

using namespace std;
const int MOD = 100;
const int FILENUMS = 3;
const int GROUPNUM = 60;
const int SIZE = 100000008 / GROUPNUM + 1;
int main() {
    unsigned long long *arr = new unsigned long long[SIZE];
    memset(arr, 0, sizeof(unsigned long long) * SIZE);
    int maxnum = 0;
    fstream inputfile("test.in");
    fstream outputfile("test.out");
    int num;
    while (!inputfile.eof()) {
        inputfile >> num;
        maxnum = max(maxnum, num);
        arr[num / GROUPNUM] |= (1ULL << num % GROUPNUM);
    }
    inputfile.close();
    int cnt = 0;
    int c = 0;
    for (int i = 0; i <= maxnum; i++) {
        if (arr[i / GROUPNUM] & (1ULL << i % GROUPNUM)) {
            if ((++cnt) % MOD == 0) {
                cnt = 0;
                outputfile << i << endl;
                if ((++c) > 10)
                    break;
            }
        }
    }
    // system("pause");
    return 0;
}
